package com.itheima.demo;

import com.itheima.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo {
    public static void main(String[] args) {
        ApplicationContext pc = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService userService = (UserService)pc.getBean("userService");
        /*int ret = userService.update();*/
        userService.save();
       /* System.out.println(ret);*/

    }
}
